import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useSearchStore = defineStore(
  'search',
  () => {
    const searchList = ref<string[]>([])

    return { searchList }
  },
  {
    persist: {
      paths: ['searchList']
    }
  }
)
